package com.zhiyou100.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.LogMapper;
import com.zhiyou100.model.log;
import com.zhiyou100.service.LogService;

@Service
public class LogServiceImpl implements LogService{
	@Autowired
	private LogMapper mapper;

	@Override
	public void addLogs(Map<String, Object> map) {
		mapper.addLogs(map);
		
	}

	@Override
	public void addBackgroundLogs(Map<String, Object> map) {
		mapper.addBackgroundLogs(map);
		
	}

	@Override
	public List<log> findAll(Map<String, Object> map) {
		List<log> logs = mapper.findAll(map);
		return logs;
	}

	@Override
	public List<log> findAllLog(Map<String, Object> map) {
		List<log> logs = mapper.findAllLog(map);
		return logs;
	}
	
	
}
